package service.impl;

import mapper.CollectionMapper;
import mapper.FollowMapper;
import org.springframework.stereotype.Service;
import pojo.Collectiona;
import pojo.Follow;
import pojo.User;
import service.CollectionService;
import service.FollowService;

import javax.annotation.Resource;

@Service("followService")
public class FollowServiceImpl implements FollowService {
    @Resource
    private FollowMapper followMapper;

    @Override
    public int insert(Follow follow) {
        return followMapper.insert(follow);
    }

    @Override
    public int follow(String beSubscribe, String subscribe) {
        return followMapper.follow(beSubscribe,subscribe);
    }

    @Override
    public Follow getFollowByUid(String beSubscribe, String subscribe) {
        return followMapper.getFollowByUid(beSubscribe,subscribe);
    }

    @Override
    public int delete(int followid) {
        return followMapper.delete(followid);
    }

    @Override
    public int getFollownumBysubscribe(String userid) {
        return followMapper.getFollownumBysubscribe(userid);
    }

    @Override
    public int getFollownumBybeSubscribe(String userid) {
        return followMapper.getFollownumBybeSubscribe(userid);
    }


}
